<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>修改员工信息</title>
	<script type="text/javascript" src="js/jquery-1.11.0.min.js"> </script> 
<style type="text/css">
<!--
body {
	font-family: Arial, Helvetica, sans-serif;
	font-size:12px;
	color:#666666;
	background:#fff;
	text-align:center;

}

* {
	margin:0;
	padding:0;
}

a {
	color:#1E7ACE;
	text-decoration:none;	
}

a:hover {
	color:#000;
	text-decoration:underline;
}
h3 {
	font-size:14px;
	font-weight:bold;
}

pre,p {
	color:#1E7ACE;
	margin:4px;
}
input, select,textarea {
	padding:1px;
	margin:2px;
	font-size:12px;
}
.buttom{
	padding:1px 10px;
	font-size:12px;
	border:1px #1E7ACE solid;
	background:#D0F0FF;
}
#formwrapper {
	width:95%;
	margin:15px auto;
	padding:20px;
	text-align:left;
}

fieldset {
	padding:10px;
	margin-top:5px;
	border:1px solid #1E7ACE;
	background:#fff;
}

fieldset legend {
	color:#1E7ACE;
	font-weight:bold;
	background:#fff;
}

fieldset label {
	float:left;
	width:120px;
	text-align:right;
	padding:4px;
	margin:1px;
}

fieldset div {
	clear:left;
	margin-bottom:2px;
}

.enter{ text-align:center;}
.clear {
	clear:both;
}

-->
</style>
<script type="text/javascript">

</script>
</head>
<body>
<div id="formwrapper">
	<h3>员工修改</h3>
	<form action="staff/updateStaff.action" method="post">
		<input type="hidden" name="id" value="${staff.id }">
		<fieldset>
			<legend>员工修改</legend>
			<div>
				<label for="name">姓名</label>
				<input type="text" name="name" id="name" value="${staff.name }" size="10" maxlength="200" />&nbsp;<font color="red">*</font><br />	
			</div>
			<div>
				<label for="name">登录账号</label>
				<input type="text" name="username" id="username" value="${staff.username}" size="15" />&nbsp;<font color="red">*</font><br />	
			</div>
			<div>
				<label for="name">手机号码</label>
				<input type="text" name="telephone" id="telephone" value="${staff.telephone}" size="15" /><br />	
			</div>
			<div>
				<label for="name">员工状态</label>
				<select name="status">
					<option value="0" <c:if test="${staff.status == 0}">selected</c:if>>离职</option>
					<option value="1" <c:if test="${staff.status == 1}">selected</c:if>>在职</option>
				</select>
				<br />	
			</div>
			<div>
				<label for="name">角色</label>
				<select name="isAdmin">
					<option value="0" <c:if test="${staff.isAdmin == 0}">selected</c:if>>员工</option>
					<option value="1" <c:if test="${staff.isAdmin == 1}">selected</c:if>>店长</option>
				</select>
				<br />	
			</div>
			<div>
				<label for="description">备注</label>
				<textarea rows="10" cols="20" name="note" id="note">${staff.note }</textarea><br />	
			</div>
			
			<div class="enter">
			    <input type="submit"value="提交" class="buttom" id="test">
				<input name="return" type="button" class="buttom" value="返回列表页面" onclick="window.location = 'staff/showStaff.action'"/>
			</div>
		</fieldset>
	</form>
</div>
</body>
</html>

